package com.ruoyi.merchantsrecord.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchantsrecord.mapper.CrmCustomerMerchantsRecordMapper;
import com.ruoyi.merchantsrecord.domain.CrmCustomerMerchantsRecord;
import com.ruoyi.merchantsrecord.service.ICrmCustomerMerchantsRecordService;

/**
 * 客户线索跟进记录Service业务层处理
 * 
 * @author hct
 * @date 2022-02-16
 */
@Service
public class CrmCustomerMerchantsRecordServiceImpl implements ICrmCustomerMerchantsRecordService 
{
    @Autowired
    private CrmCustomerMerchantsRecordMapper crmCustomerMerchantsRecordMapper;

    /**
     * 查询客户线索跟进记录
     * 
     * @param id 客户线索跟进记录主键
     * @return 客户线索跟进记录
     */
    @Override
    public CrmCustomerMerchantsRecord selectCrmCustomerMerchantsRecordById(Long id)
    {
        return crmCustomerMerchantsRecordMapper.selectCrmCustomerMerchantsRecordById(id);
    }

    /**
     * 查询客户线索跟进记录列表
     * 
     * @param crmCustomerMerchantsRecord 客户线索跟进记录
     * @return 客户线索跟进记录
     */
    @Override
    public List<CrmCustomerMerchantsRecord> selectCrmCustomerMerchantsRecordList(CrmCustomerMerchantsRecord crmCustomerMerchantsRecord)
    {
        return crmCustomerMerchantsRecordMapper.selectCrmCustomerMerchantsRecordList(crmCustomerMerchantsRecord);
    }
    /**
     * 查询客户线索跟进记录列表
     *
     * @param crmCustomerMerchantsRecord 客户线索跟进记录
     * @return 客户线索跟进记录
     */
    @Override
    public List<CrmCustomerMerchantsRecord> selectCrmCustomerMerchantsAndRecordList(CrmCustomerMerchantsRecord crmCustomerMerchantsRecord)
    {
        return crmCustomerMerchantsRecordMapper.selectCrmCustomerMerchantsAndRecordList(crmCustomerMerchantsRecord);
    }
    /**
     * 新增客户线索跟进记录
     * 
     * @param crmCustomerMerchantsRecord 客户线索跟进记录
     * @return 结果
     */
    @Override
    public int insertCrmCustomerMerchantsRecord(CrmCustomerMerchantsRecord crmCustomerMerchantsRecord)
    {
        return crmCustomerMerchantsRecordMapper.insertCrmCustomerMerchantsRecord(crmCustomerMerchantsRecord);
    }

    /**
     * 修改客户线索跟进记录
     * 
     * @param crmCustomerMerchantsRecord 客户线索跟进记录
     * @return 结果
     */
    @Override
    public int updateCrmCustomerMerchantsRecord(CrmCustomerMerchantsRecord crmCustomerMerchantsRecord)
    {
        return crmCustomerMerchantsRecordMapper.updateCrmCustomerMerchantsRecord(crmCustomerMerchantsRecord);
    }

    /**
     * 批量删除客户线索跟进记录
     * 
     * @param ids 需要删除的客户线索跟进记录主键
     * @return 结果
     */
    @Override
    public int deleteCrmCustomerMerchantsRecordByIds(Long[] ids)
    {
        return crmCustomerMerchantsRecordMapper.deleteCrmCustomerMerchantsRecordByIds(ids);
    }

    /**
     * 删除客户线索跟进记录信息
     * 
     * @param id 客户线索跟进记录主键
     * @return 结果
     */
    @Override
    public int deleteCrmCustomerMerchantsRecordById(Long id)
    {
        return crmCustomerMerchantsRecordMapper.deleteCrmCustomerMerchantsRecordById(id);
    }
}
